package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategySign;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategySignMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategySign sign);

    StrategySign selectByPrimaryKey(Long id);

    List<StrategySign> selectAll();

    int updateByPrimaryKey(StrategySign sign);

    StrategySign selectByStrategyId(@Param("strategyId") Long strategyId, @Param("userId") Long userId);

    int queryGreatStatusCountByStrategyId(Long strategyId);

    int queryEnshrineStatusCountByStrategyId(Long strategyId);
}